<div class="content">
		<div class="info-title">基本信息</div>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span3" style="border:1px solid #E5E5E5;height:584px">
					<ul class="nav nav-list">
						<li class="nav-header" style="font-size:20px;padding-top:15px">资源信息</li>
						<li class="divider"></li>
						<li class=""><a href="/EECloud/index.php/publishres/main">基本资料</a></li>
						<li class="divider"></li>
						<li><a href="/EECloud/index.php/publishres/detail">详细资料</a></li>
						<!-- <li class="divider"></li>
						<li><a href="/EECloud/index.php/userinfo/interests">兴趣爱好</a></li>
						<li class="divider"></li>
						<li><a href="/EECloud/index.php/userinfo/education">教育背景</a></li>
						<li class="divider"></li>
						<li><a href="/EECloud/index.php/userinfo/career">工作信息</a></li>
						<li class="divider"></li>
						<li><a href="/EECloud/index.php/userinfo/portrait">头像设置</a></li> -->
						<li class="divider"></li>
						<li class="nav-header" style="font-size:20px">其他资源</li>

					</ul>
				</div>
				<div class="span9" style="">
<div class="content-title">基本资料</div>
<div class="info-content">
	<form id="res_main_form" action="/EECloud/index.php/publishres/detail">
		<input id="res_id" type="hidden" name="res_id" value="2" />
		<table class="info" cellpadding="5px">
			<tr>
				<td>文件名：</td>
				<input id="res_id" type="hidden" name="res_id" value="<?=$res['id'];?>" />
				<td><input type="text" name="res_name" value="<?=$res['resourceName'];?>" readonly></td>
			</tr>
			<tr>
				<td>资源名称：</td>
				<td><input type="text" name="res_name" value="" id="newName"></td>
			</tr>
			<tr>
				<td>学科属性：</td>
				<td><input type="text" name="subject" value="<?=$res['subject'];?>" readonly></td>
			</tr>
			<tr>
				<td>资源类型：</td>
				<td>
					<select id="res_type" name="res_type">
						<option>图片</option>
						<option>word文档</option>
						<option>pdf文档</option>
						<option>视频</option>
						<option>其他</option>
					</select>
				</td>
				<td><input type="hidden" id="size" value="" name="fileSize"></td>
			</tr>
			<tr>
				<td>资源介绍：</td>
				<td><textarea name="res_desc" style="width:350px;height:138px;resize:none"></textarea></td>
			</tr>
			<tr>
				<td></td>
				<td><a href="" id="save_next" class="btn btn-primary">保存并下一步</a></td>
			</tr>
		</table>
	</form>	
</div>
<script type="text/javascript">
	
	$(document).ready(function(){

		var filePath = "<?=$res['resourceName'];?>";
		var fileSize = "<?=$res['size'];?>";
		// var fileName = filePath.replace(/\.\w+$/,'');//去掉文件后缀
		$("#newName").val(filePath);
		$("#size").val(fileSize);
		$('#save_next').click(function(){
			$('#res_main_form').submit();
			return false;
		});

		

	});
</script>